-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: fix sink retain ordering and ignore custom runtime options server set vals #112
Conversation
@freeznet:Thanks for your contribution. For this PR, do we need to update docs? |
Description: resourceFunctionDescriptions[resourceFunctionSubscriptionPositionKey], | ||
ValidateFunc: func(val interface{}, key string) ([]string, []error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems can use a common method for functions/sins both
@@ -327,19 +351,19 @@ func resourcePulsarFunction() *schema.Resource { | |||
resourceFunctionCPUKey: { | |||
Type: schema.TypeFloat, | |||
Optional: true, | |||
Default: 0.5, | |||
Computed: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the default value is removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the resources will be returned by worker service apis and it may changed by the worker service, so it should be marked as computed
to prevent the resources been frequently update.
Fixes #110
(or if this PR is one task of a github issue, please add
Master Issue: #<xyz>
to link to the master issue.)Master Issue: #
Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve.
Modifications
computed
, because the resources configs may changed by the worker service and we should use the returned value to the state.Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Documentation
Check the box below.
Need to update docs?
doc-required
(If you need help on updating docs, create a doc issue)
no-need-doc
(Please explain why)
doc
(If this PR contains doc changes)